import axios from "./axios-config";

// 获取最近/最频繁访问的反应器温度、湿度和气压
export function getCurrentReactorSensorList() {
    const res = axios.post("/current/currentReactorSensor");
    return new Promise((resolve, reject) => {
      res
        .then((result) => {
          console.log("result", result);
          if (result.status === 200) {
            return result.data;
          } else {
            reject(result.status);
          }
        })
        .then((json) => {
          resolve(json);
        })
        .catch((e) => {
          reject(e.toString());
        });
    });
  }